# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pytest-mpi
pkgver=0.6
pkgrel=2
pkgdesc="pytest plugin to collect information from tests"
url="https://pytest-mpi.readthedocs.io/en/latest/"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-mpi4py
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-sybil
	py3-pytest
	"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/p/pytest-mpi/pytest-mpi-$pkgver.tar.gz"
options="!check" # Errors everywhere
builddir="$srcdir/pytest-mpi-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest -p pytester
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
6de01394739effdd5cae8e5e519dd4346a6e5ccf4443dc295d0cfd3eb4b8267d2202a01da2f20b6f8fff6fbe18d6e9eb6094f38cb00eba87b336d5e9f26a57c0  pytest-mpi-0.6.tar.gz
"
